/* Toolbar */
#placesToolbar {
  border: none;
}

/* back & forward buttons */
#back-button, #forward-button {
  list-style-image: url("chrome://browser/skin/places/librarynavigation.png");
  -moz-appearance: none;
  padding: 2px;
  margin: 1px;
  border: 1px solid transparent;
}

#placesToolbar > toolbarbutton > image,
#placesToolbar > toolbarbutton > label {
  margin: 0px;
  padding: 0px;
}

#back-button,
#forward-button[chromedir="rtl"] {
  -moz-image-region: rect(0px, 24px, 24px, 0px);
}

#back-button:not([disabled="true"]):hover,
#forward-button:not([disabled="true"]):hover[chromedir="rtl"] {
  -moz-image-region: rect(24px, 24px, 48px, 0px);
  border-color: #FFF #BBB #BBB #FFF;
}

#back-button:not([disabled="true"]):active,
#forward-button:not([disabled="true"]):active[chromedir="rtl"] {
  -moz-image-region: rect(24px, 24px, 48px, 0px);
  border-color: #BBB #FFF #FFF #BBB;
}

#back-button[disabled="true"],
#forward-button[chromedir="rtl"][disabled="true"] {
  -moz-image-region: rect(48px, 24px, 72px, 0px) !important;
}

#forward-button,
#back-button[chromedir="rtl"] {
  -moz-image-region: rect(0px, 48px, 24px, 24px);
}

#forward-button:not([disabled="true"]):hover,
#back-button:not([disabled="true"]):hover[chromedir="rtl"] {
  -moz-image-region: rect(24px, 48px, 48px, 24px);
  border-color: #FFF #BBB #BBB #FFF;
}

#forward-button:not([disabled="true"]):active,
#back-button:not([disabled="true"]):active[chromedir="rtl"] {
  -moz-image-region: rect(24px, 48px, 48px, 24px);
  border-color: #BBB #FFF #FFF #BBB;
}

#forward-button[disabled="true"],
#back-button[chromedir="rtl"][disabled="true"] {
  -moz-image-region: rect(48px, 48px, 72px, 24px) !important;
}

/* Menu */
#placesMenu {
  -moz-appearance: none;
  border: none;
}

#placesMenu > menu {
  -moz-appearance: none;
  color: #000;
  min-height: 30px;
  border: 1px solid transparent;
}

#placesMenu > menu:hover {
  border-color: #FFF #BBB #BBB #FFF;
}

#placesMenu > menu:active {
  border-color: #BBB #FFF #FFF #BBB;
}

#placesMenu > menu[open="true"] {
  border-color: #BBB #FFF #FFF #BBB;
}

#placesMenu > menu > label {
  -moz-padding-start: 2px;
  -moz-padding-end: 14px;
  background: url(chrome://global/skin/arrow/arrow-dn.gif) right center no-repeat;
}

#placesMenu[chromedir="rtl"] > menu > label {
  background-position: left center;
}

/* organize button */
#organizeButton {
  list-style-image: url("chrome://browser/skin/places/organize.png");
}

#organizeButton:hover {
  list-style-image: url("chrome://browser/skin/places/organize-hov.png");
}

/* view button */
#viewMenu {
  list-style-image: url("chrome://browser/skin/places/view.png");
}

#viewMenu:hover {
  list-style-image: url("chrome://browser/skin/places/view-hov.png");
}

/* maintenance button */
#maintenanceButton {
  list-style-image: url("chrome://browser/skin/places/importandbackup.png");
}
#maintenanceButton:hover {
  list-style-image: url("chrome://browser/skin/places/importandbackup-hov.png");
}

/* Place List, Place Content */
.placesTree {
  margin: 0px;
}

#placesList {
  -moz-appearance: none;
  margin: 0px;
  border: none;
  padding: 0px;
}

#placeContent {
  -moz-appearance: none;
  border: 0px;
}

/* Search Bar */
#searchbar {
  -moz-appearance: none;
  margin: 6px -4px 0px 2px;
}

#infoPaneBox {
  border-top: 1px solid #666;
  padding: 5px;
}

.textbox-input-closebutton {
  -moz-appearance: none;
  margin: 1px 2px 1px 1px;
  min-width: 0px;
  background-color: transparent;
  border: none;
  padding: 0px !important;
  list-style-image: url("chrome://global/skin/icons/close.png");
  -moz-image-region: rect(0px 16px 16px 0px);
  cursor: default;
}

.textbox-input-closebutton,
.textbox-input-closebutton > .button-box {
  margin: 0px;
  padding: 0px;
  -moz-outline: none;
}

.textbox-input-closebutton:hover {
  -moz-image-region: rect(0px 32px 16px 16px);
}

.textbox-input-closebutton:active {
  -moz-image-region: rect(0px 48px 16px 32px);
}

.small, .small[disabled="true"] {
  font-size: x-small;
  min-width: 0px;
  padding: 0px 4px 0px 4px;
  margin: 0px;
  border: 0px;
}

.small .button-text,
.small .button-box {
  padding: 0px;
  border: 0px;
}

#searchFilter {
  -moz-appearance: none;
  padding: 0px;
}

#searchFilter .textbox-input-box {
  -moz-appearance: none;
  padding: 2px 2px 3px 4px;
}


#organizerScopeBar {
  -moz-appearance: none;
  padding: 2px 0px;
  -moz-padding-end: 3px;
}

#organizerScopeBar > toolbarbutton {
  -moz-appearance: none;
  -moz-border-radius: 3px;
  border: 1px solid transparent;
  padding: 0px;
  margin: 0px;
}

#organizerScopeBar > toolbarbutton > label,
#organizerScopeBar > toolbarbutton > image {
  padding: 0px;
  margin: 0px;
}

#organizerScopeBar .toolbarbutton-text {
   margin: 0px;
   padding: 2px 5px;
}

#organizerScopeBar > toolbarbutton:not([disabled="true"]):not([checked="true"]):hover {
  border-color: #999;
}

#organizerScopeBar > toolbarbutton[checked="true"] {
  border-color: #666 !important;
}
